]> dgit.raspbian.org Git - gnome-shell.git/commit
runDialog: popModal before running the command
authorDan Winship <danw@gnome.org>
Fri, 18 Mar 2011 15:28:18 +0000 (11:28 -0400)
committerDan Winship <danw@gnome.org>
Mon, 21 Mar 2011 18:26:08 +0000 (14:26 -0400)
commita40daa3c22eb4a91d69a8554848c596d522f850a
tree247900b77eb61303d8f212b765755c5720f2576d
parent1e366aa56e21fadf1ff7364821494abe54c1eb7f
runDialog: popModal before running the command

If you run a command from Alt+F2 that tries to get a server grab (eg,
xmag), it will fail if it starts up before the run dialog is finished
hiding.

Additionally, the run dialog currently stays focused while it is
fading out, potentially stealing keystrokes (or causing the user to
accidentally launch two copies of a program).

Change ModalDialog.close() to call popModal() immediately

Add a ModalDialog.popModal method, and call that before running the
RunDialog command. If the command succeeds, close the dialog as
before. If it fails, call ModalDialog.pushModal() to put things back
to normal before displaying the error.

https://bugzilla.gnome.org/show_bug.cgi?id=644857
js/ui/modalDialog.js
js/ui/runDialog.js